package service.impl;

import dao.DormscoresDao;
import dao.impl.DormscoresDaoImpl;
import entity.Dorm_scores;
import service.DormscoresService;

import java.sql.SQLException;
import java.util.List;

public class DormscoresServiceImpl implements DormscoresService {

    DormscoresDao a=new DormscoresDaoImpl();
    @Override
    public List<Dorm_scores> cxj(Integer lid, int page, int pageSize) throws SQLException, ClassNotFoundException {
        return a.cxj(lid,page,pageSize);
    }

    @Override
    public int scj(int id) throws SQLException, ClassNotFoundException {
        return a.scj(id);
    }

    @Override
    public int xgj(int score_id, int room_id, String check_date, int hygiene_score, int discipline_score, String inspector) throws SQLException, ClassNotFoundException {
        return a.xgj(score_id,room_id,check_date,hygiene_score,discipline_score,inspector);
    }

   public int cx1(String room_number) throws SQLException, ClassNotFoundException{
        return a.cx1(room_number);
    }


    @Override
    public int tjj(int room_id, String check_date, int hygiene_score, int discipline_score, String inspector) throws SQLException, ClassNotFoundException {
        return a.tjj( room_id,  check_date,  hygiene_score,  discipline_score, inspector);
    }
}
